﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.ComponentModel;

namespace KerriganDataContract.Session
{
    [DataContract]
    public class LevelSessionDC : INotifyPropertyChanged
    {
        private int _IdLevelSessionDC;
        private string _Name;
        private int _MaxApplicant;
        
        [DataMember]
        public int IdLevelSessionDC 
        {
            get { return this._IdLevelSessionDC; }
            set { this._IdLevelSessionDC = value; OnPropertyChanged("IdLevelSessionDC"); }
        }
                    

        [DataMember]
        public string Name
        {
            get { return this._Name; }
            set { this._Name = value; OnPropertyChanged("Name"); }
        }

        [DataMember]
        public int MaxApplicant
        {
            get { return this._MaxApplicant; }
            set { this._MaxApplicant = value; OnPropertyChanged("MaxApplicant"); }
        }

        public event PropertyChangedEventHandler PropertyChanged;

        private void OnPropertyChanged(string property)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(property));
            }
        }
    }
}